<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>抄送给我的请假申请列表</title>
    <script src="/static/bflow/assets/js/scriptLib.js"></script>
    <script src="/static/bflow/assets/js/tableScriptLib.js"></script>
    <script src="/static/bflow/assets/js/bootsTableUtil.js"></script>
</head>
<body>
<div class="container">
    <div class="page-header">
        <h1>请假
            <small><a href="/index.html" class="btn btn-link">首页</a></small>
        </h1>
    </div>
    <ul class="nav nav-tabs">
        <li><a href="/static/bflow/ui/example/leave/list.html"><span>全部请假记录</span></a></li>
        <li><a href="/static/bflow/ui/example/leave/myList.html"><span>我的请假记录</span></a></li>
        <li class="active"><a href="/static/bflow/ui/example/leave/copyToMeList.html"><span>抄送给我的请假申请</span></a></li>
        <li class=""><a href="/static/bflow/ui/example/leave/auditList.html"><span>待审批</span></a></li>
        <li class=""><a href="/static/bflow/ui/example/leave/cancelList.html"><span>已撤销</span></a></li>
    </ul>
    <div id="toolbar" class="btn-group hidden-xs" role="group">
        <a href="/static/bflow/ui/example/leave/add.html" class="btn btn-outline btn-default"><i class="glyphicon glyphicon-plus"></i> 新增请假</a>
    </div>
    <table id="dataList" data-mobile-responsive="true">
        <thead>
        <tr>
            <th data-formatter="indexFormatter">序号</th>
            <th data-field="instance.id" data-visible="false">流程实例ID</th>
            <th data-field="instance.startUname">请假人</th>
            <th data-field="instance.startURoleName">请假人角色名称</th>
            <th data-field="instance.extVarchar2">请假类型</th>
            <th data-field="instance.extNumeric1">请假天数</th>
            <th data-field="instance.extDatetime1" data-formatter="dateTimeFormatter">请假开始时间</th>
            <th data-field="instance.extDatetime2" data-formatter="dateTimeFormatter">请假结束时间</th>
            <th data-field="instance.extVarchar1">请假事由</th>
            <th data-field="instance.createTime" data-formatter="dateTimeFormatter" data-sortable="true" data-order="desc">提交时间</th>
            <th data-field="instance.statusName" data-formatter="statusFormatter">流程状态</th>
            <th data-formatter="operationFormatter">操作</th>
        </tr>
        </thead>
        <tbody></tbody>
    </table>
</div>
</body>
<script src="/static/bflow/assets/js/bflow/example/leaveList.js"></script>
<script type="text/javascript">
    //加载数据
    BootstrapTableUtil.initTableDataByServer("/example/leave/copyToMeList");

    function operationFormatter(value, row, index) {
        var   buts = '<a href="#"  onclick="view(\''+row.instance.id+'\')" class="btn btn-primary btn-xs" style="margin-left: 5px">详情</a>';
        // buts += '<a href="#"  onclick="del(\''+row.id+'\')" class="btn btn-primary btn-xs" style="margin-left: 5px">删除</a>';
        return buts;
    }
</script>
</html>